﻿using FlowCanvas.Nodes;

namespace Yoozoo.Gameplay.Liberty.StreetEvent
{
    public class AddStreetEventCounter : CallableActionNode<string,int,TaskCounterMode, int>
    {
        public override void Invoke(string counterName, int threshold, TaskCounterMode mode, int initCount = 0)
        {
            counterName = counterName.Trim();
            StreetEventManager.GetInstance("StreetEventManager").AddTaskCounter(counterName, threshold, mode, initCount);
        }
    }
}